using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using UwinEducation.Application.Dtos.Orders;
using UwinEducation.Shared.Models;

namespace UwinEducation.Application.Common.Interfaces.Orders
{
    /// <summary>
    /// 订单详情服务接口
    /// </summary>
    public interface IOrderDetailService
    {
        /// <summary>
        /// 获取订单详情
        /// </summary>
        Task<OrderDetailDto> GetByIdAsync(Guid id);

        /// <summary>
        /// 获取订单的所有详情
        /// </summary>
        Task<List<OrderDetailDto>> GetByOrderIdAsync(Guid orderId);

        /// <summary>
        /// 根据教师课表ID获取订单详情
        /// </summary>
        Task<List<OrderDetailDto>> GetByTeacherScheduleIdAsync(Guid teacherScheduleId);

        /// <summary>
        /// 添加订单详情
        /// </summary>
        Task<OrderDetailDto> AddAsync(CreateOrderDetailDto createOrderDetailDto, Guid orderId);

        /// <summary>
        /// 更新订单详情
        /// </summary>
        Task<OrderDetailDto> UpdateAsync(UpdateOrderDetailDto updateOrderDetailDto);

        /// <summary>
        /// 删除订单详情
        /// </summary>
        Task DeleteAsync(Guid id);

        /// <summary>
        /// 批量删除订单详情
        /// </summary>
        Task DeleteRangeAsync(List<Guid> ids);

        /// <summary>
        /// 分页查询订单详情
        /// </summary>
        /// <param name="request">分页请求</param>
        /// <returns>分页结果</returns>
        Task<PagedResult<OrderDetailDto>> GetPagedAsync(OrderDetailPageRequest request);
    }
} 